package com.homegoods.home.model;

import com.homegoods.home.item.SearchListItem;
import com.kedll.library.adapter.MultiTypeAdapter;

import org.litepal.crud.LitePalSupport;


/**
 * 分类列表model
 *
 * @author QiQi
 * @date 2017/5/27
 */
public class SearchListModel extends LitePalSupport {

    private long id;
    private String title;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getTitle() {
        return title == null ? "" : title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public SearchListItem createItem(MultiTypeAdapter adapter) {
        return new SearchListItem(null, this, adapter);
    }

}
